package com.example.SpringBootMybatis.entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "disease")
public class Disease {
    @Column(name = "symbol")
    private String symbol;
    @Id
    private int id;

    public Disease(String diseaseSymbol, int id) {
        this.symbol = diseaseSymbol;
        this.id = id;
    }

    public String getDiseaseSymbol() {
        return symbol;
    }

    public void setDiseaseSymbol(String diseaseSymbol) {
        this.symbol = diseaseSymbol;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Disease{" +
                "diseaseSymbol='" + symbol + '\'' +
                ", id=" + id +
                '}';
    }
}
